<form id="send-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

	<fieldset>
		<legend>
			{:__('order detail info')} 
		</legend>

		<!-- 订单信息 -->
		<div class="col-md-10 col-md-offset-1 col-sm-12">
			<div class="box radius-none">
				<div class="box-header with-border">
					{:__('Order_no')}：{$vo.order_no} ( Order time: {$vo.createtime|date="Y-m-d H:i:s",###}){if ($vo.code != '')}<br><span class="label label-warning">(Discount code:{$vo.code})</span>{/if}
				</div>
				<div class="box-body">
					<div class="panel panel-default">
					  <div class="panel-heading">Product details</div>
					  <table class="table">
					  	{foreach name="vo.goods" item="item"}
						  	<tr>
							  <td style="width: 40%;">
								  {$item.goods_name}
								  {if ($item.activity_buy_id > 0)}<br><span class="label label-warning">{:__('Buy at will')}({:__('ActivityId')}:{$item.activity_buy_id})</span>{/if}
								  {if ($item.activity_full_id > 0)}<br><span class="label label-default">{$item.activity_label}({:__('ActivityId')}:{$item.activity_full_id})</span>{/if}
							  </td>
							  <td><img src="{:explode(',',$item.images)[0]}" alt="" style="width: 50px;"></td>
							  <td>{$item.goods_attr}</td>
							  <td>
								  {$item.goods_price}
								  {if ($item.activity_discount_rate != 1)}
								  <br>(Discount:{$item.activity_discount_rate})
								  <br>(Discount amount:{:bcmul($item.goods_price, $item.activity_discount_rate,2)})
								  {/if}
							  </td>
							  <td>Number:{$item.total_num}</td>
							</tr>
				        {/foreach}
					  </table>
					</div>

					<div class="row" style="margin:1em 0;">
						<div class="col-md-4 padding">
							<span class="label label-danger">{:__('Pay_status')}</span> :
							{$vo.pay_status_text}
						</div>
						<div class="col-md-4 padding">
							<span class="label label-danger">{:__('Pay_time')}</span> :
							{if ($vo.pay_time==0)}

							{else}
								{$vo.pay_time|date="Y-m-d H:i:s",###}
							{/if}
						</div>
						<div class="col-md-4 padding">
							<span class="label label-danger">{:__('Pay_type')}</span> :
							{$vo.pay_type}
						</div>
					</div>

					<div class="row" style="margin:1em 0;">
						<div class="col-md-4 padding">
							<span class="label label-primary">{:__('Total_price')}</span> :
							{$vo.total_price}
							{if ($vo.order_derate_money!=0)}
							({:__('ActivityDerate')}:{$vo.order_derate_money})
							{/if}
						</div>
						<div class="col-md-4 padding">
							<span class="label label-primary">{:__('Express_price')}</span> :
							{$vo.express_price}
						</div>
						<div class="col-md-4 padding">
							<span class="label label-primary">{:__('Pay_price')}</span> :
							{$vo.pay_price}
						</div>
					</div>

					<div class="row" style="margin:1em 0;">
						<div class="col-md-4 padding">
							<span class="label label-success">{:__('Freight_status')}</span> :
							{$vo.freight_status_text}
						</div>
						<div class="col-md-4 padding">
							<span class="label label-success">{:__('Freight_time')}</span> :
							{if ($vo.freight_time==0)}

							{else}
								{$vo.freight_time|date="Y-m-d H:i:s",###}
							{/if}
						</div>
						<div class="col-md-4 padding">
							<span class="label label-success">{:__('Express_company')}</span> :
							{$vo.express_company}
						</div>
						<div class="col-md-4 padding">
							<span class="label label-success">{:__('Express_no')}</span> : 
							{$vo.express_no}
						</div>
					</div>

					<div class="row" style="margin:1em 0;">
						<div class="col-md-4 padding">
							<span class="label label-info">{:__('Receipt_status')}</span> : 
							{$vo.receipt_status_text}
						</div>
						<div class="col-md-4 padding">
							<span class="label label-info">{:__('Receipt_time')}</span> : 
							{if ($vo.receipt_time==0)}

							{else}
								{$vo.receipt_time|date="Y-m-d H:i:s",###}
							{/if}
						</div>
						<div class="col-md-4 padding">
							<span class="label label-info">{:__('Order_status')}</span> : 
							{$vo.order_status_text}
						</div>
					</div>

					<div class="col-md-12 padding">
						<fieldset>
							<legend><h4>{:__('consignee user info')}</h4></legend>
							<div class="col-md-6 padding">
								{:__('province / Region')}: {$vo.address.country} / {$vo.address.state} / {$vo.address.city}
							</div>
							<div class="col-md-6 padding">
								{:__('AddressDetail')}: {$vo.address.detail}
							</div>
							<div class="col-md-6 padding">
								{:__('Consignee')}:{$vo.address.first_name} {$vo.address.last_name}
							</div>
							<div class="col-md-6 padding">
								{:__('mobile')}: {$vo.address.phone_number}
							</div>
							<div class="col-md-6 padding">
								{:__('email')}: {$vo.address.email_address}
							</div>
							<div class="col-md-6 padding">
								{:__('postal_code')}:{$vo.address.postal_code}
							</div>
							<div class="col-md-6 padding">
								{:__('ExpressCompany')}: {$vo.address.express_company}
							</div>
							{if ($vo.address.express_company == 'Fedex')}
							<div class="col-md-6 padding">
								{:__('FedexServiceTypes')}: {$vo.address.service_name}
							</div>
							{/if}
						</fieldset>
					</div>

					<div class="col-md-12 padding">
						<fieldset>
							<legend><h4> </h4></legend>
<!--							<div class="col-md-6 col-md-offset-6 padding">-->
							{if ($vo.user_id == 0)}
							<div class="col-md-6 padding">
								<span class="label label-success">{:__('OrderUserID')}:</span>{:__('Tourist')}
							</div>
							<div class="col-md-6 padding">
								<span class="label label-success">{:__('OrderUserName')}:</span>{:__('Tourist')}
							</div>
							{else}
							<div class="col-md-6 padding">
								<span class="label label-success">{:__('OrderUserID')}:</span>{$vo.user.id}
							</div>
							<div class="col-md-6 padding">
								<span class="label label-success">{:__('OrderUserName')}:</span>{$vo.user.nickname}
							</div>
							{/if}

<!--							</div>-->
						</fieldset>
					</div>
				</div>
			</div>
		</div>
		<!-- 订单信息 -->
	</fieldset>


	{in name="$vo.freight_status" value="10,20"}
	<fieldset>
		<legend><h4>{:__('Shipping Information')}</h4></legend>
			<div class="form-group">
				<input type="hidden" name="ids" id="ids" value="{$vo.id}">
				<label for="c-virtual_name" class="control-label col-xs-12 col-sm-2">{:__('ExpressCompany')}:</label>
				<div class="col-xs-12 col-sm-8">
					<input placeholder="" id="c-virtual_name" data-rule="required" class="form-control" name="virtual_name" type="text" value="{$vo.address.express_company}">
				</div>
			</div>
			<div class="form-group">
				<label for="c-virtual_sn" class="control-label col-xs-12 col-sm-2">{:__('ExpressNumber')}:</label>
				<div class="col-xs-12 col-sm-8">
					<input placeholder="" id="c-virtual_sn" data-rule="required" class="form-control" name="virtual_sn" type="text" value="{$vo.express_no}">
				</div>
			</div>
	</fieldset>

		<div class="form-group layer-footer">
			<label class="control-label col-xs-12 col-sm-2"></label>
			<div class="col-xs-12 col-sm-8">
				<button type="button" id="send" data-type="send" class="btn btn-success btn-embossed">{:__('ConfirmShipment')}</button>
			</div>
		</div>
	{/in}

</form>